package cn.huiyunche.base.service.enums;


/**
 * 运单状态类型
 *
 * @author houjianhui
 */
public enum DWaybillStatusTypeEnum {

    OPERATION(0, "操作状态"),
    PROCESS(1, "流程状态");

    private final int value;
    private final String text;

    DWaybillStatusTypeEnum(int value, String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static DWaybillStatusTypeEnum getByValue(int value) {
        for (DWaybillStatusTypeEnum temp : DWaybillStatusTypeEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
